package com.atguigu.i_test;

public class BasketBallCoach extends Coach implements LearnEnglish{
    public BasketBallCoach() {
    }

    public BasketBallCoach(String name, int age) {
        super(name, age);
    }

    @Override
    public void teach() {
        System.out.println("姓名是 : " + getName() + " 年龄是 : " + getAge() + " 的篮球教练教学扣篮 ");
    }

    @Override
    public void eat(String food) {
        System.out.println("姓名是 : " + getName() + " 年龄是 : " + getAge() + " 的篮球教练在吃 " + food);
    }

    @Override
    public void sleep() {
        System.out.println("姓名是 : " + getName() + " 年龄是 : " + getAge() + " 的篮球教练在休息 ");
    }

    @Override
    public void learnEnglish() {
        System.out.println("姓名是 : " + getName() + " 年龄是 : " + getAge() + " 的篮球教练在学习英语 ");
    }
}
